cc_test(
  name = "all_test",
  size = "small",
  srcs = ["all_test.cpp"],
  deps = [    # 依赖我自己的库和googletest库
          ":std_thread",
          ":std_mutex",
          ":std_contitiaon_variable",
          ":std_atomic",
          ":std_async_ops",
          ":thread_pool",
          "@com_google_googletest//:gtest_main"
     ],
)

cc_library(
    name  = "std_thread",
    srcs  = ['std_thread.cpp'],
    hdrs  = ['std_thread.h'],
)

cc_library(
    name  = "std_mutex",
    srcs  = ['std_mutex.cpp'],
    hdrs  = ['std_mutex.h'],
)


cc_library(
    name  = "std_contitiaon_variable",
    srcs  = ['std_contitiaon_variable.cpp'],
    hdrs  = ['std_contitiaon_variable.h'],
)

cc_library(
    name  = "std_atomic",
    srcs  = ['std_atomic.cpp'],
    hdrs  = ['std_atomic.h'],
)


cc_library(
    name  = "std_async_ops",
    srcs  = ['std_async_ops.cpp'],
    hdrs  = ['std_async_ops.h'],
)


cc_library(
    name  = "thread_pool",
    srcs  = ['thread_pool.cpp'],
    hdrs  = ['thread_pool.h'],
)
